$(function(){
	document.getElementById('MoreButton').addEventListener('click', function() {
		$('.FormBlockTwo').animate({left:'50%'},300);
		$('.FormBlockOne').animate({left:'0%'},300);
		$('#SlideMaskLayer').show().animate({opacity:'1',left:'50%'},300);
		$('#pullrefresh').css({overflowY:'hidden'});
	});
	
//	document.getElementById('FormBlockTwo').addEventListener('swiperight', function() {
//		$('.FormBlockTwo').animate({left:'50%'},300);
//		$('.FormBlockOne').animate({left:'0%'},300);
//		$('#SlideMaskLayer').show().animate({opacity:'1',left:'50%'},300);
//	});
	
	
	document.getElementById('SlideMaskLayer').addEventListener('swipeleft', function() {
		$('.FormBlockTwo').animate({left:'0%'},300);
		$('.FormBlockOne').animate({left:'-50%'},300);
		$('#SlideMaskLayer').hide(0).animate({opacity:'0',left:'0%'},300);
		$('#pullrefresh').css({overflowY:'auto'});
	});
	
	document.getElementById('SlideMaskLayer').addEventListener('click', function() {
		$('.FormBlockTwo').animate({left:'0%'},300);
		$('.FormBlockOne').animate({left:'-50%'},300);
		$('#SlideMaskLayer').hide(0).animate({opacity:'0',left:'0%'},300);
		$('#pullrefresh').css({overflowY:'auto'});
	});
	
	document.getElementById('LogoButtom').addEventListener('click', function() {
		$('.FormBlockTwo').animate({left:'0%'},300);
		$('.FormBlockOne').animate({left:'-50%'},300);
		$('#SlideMaskLayer').hide(0).animate({opacity:'0',left:'0%'},300);
		$('#pullrefresh').css({overflowY:'auto'});
	});
	
});